home *** CD-ROM | disk | FTP | other *** search
/ Java Certification Exam Guide / McGrawwHill-JavaCertificationExamGuide.iso / pc / Web Links and Code / code / chap20 / Five.java < prev    next >
Encoding:
Java Source  |  1997-04-20  |  361 b   |  14 lines

  1. import java.awt.*;
  2. import java.applet.*;
  3.  
  4. public class Five extends Applet {
  5.    public void init() {
  6.       setLayout(new BorderLayout());
  7.       add("North", new Button("North"));
  8.       add("South", new Button("South"));
  9.       add("East", new Button("East"));
  10.       add("West", new Button("West"));
  11.       add("Center", new Button("Center"));
  12.    }
  13. }
  14.